package com.example.demo.classes;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("Sgin")
public class Sgin {
    @TableId(value = "uid")
    private Long uid;
    private Long aid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime listTime;
    private LocalDateTime signTime;
    private String assess;

    public Sgin(long uid, long aid) {
        this.uid = uid;
        this.aid = aid;
        this.listTime = LocalDateTime.now();
        this.signTime = LocalDateTime.of(9999,1,1,0,0);
        this.assess = "";
    }
}


